<?php
/**
 * 入住视图
 *
 * @author 红雨
 */
class CheckinViewModel extends ViewModel {
    public $viewFields = array(
            'Checkin'=>array('id'=>'checkin_id','member_id','checkin_no','room_id','status','start_time','end_time','end_realtime'),
            'Room'=>array('house_id', '_on'=>'Checkin.room_id=Room.id'),
            'House'=>array('hotel_id', '_on'=>'Room.house_id=House.id'),
            'Member'=>array('name','account', '_on'=>'Checkin.member_id=Member.id'),
    );
    
}
?>
